package org.weho.adminscake;

import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;

public class MainActivity extends TabActivity
{
	@Override
	public void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);

		TabHost tabHost = getTabHost();
		TabHost.TabSpec spec = null;
		Intent intent = null;

		intent = new Intent().setClass(this, LogCategoriesListActivity.class);
		spec = tabHost.newTabSpec("log_categories").setIndicator("Logs").setContent(intent);
		tabHost.addTab(spec);

		intent = new Intent().setClass(this, ScriptsListActivity.class);
		spec = tabHost.newTabSpec("scripts").setIndicator("Scripts").setContent(intent);
		tabHost.addTab(spec);

		tabHost.setCurrentTab(0);
		setContentView(tabHost);
	}
}
